<?php
namespace app\index\controller;

class Index
{
    public function index()
    {
    	
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }

    public function git()
    {
    	
    	$res = exec("cd git && git clone https://gaoqinfei:gqf0320...@gitee.com/gaoqinfei/text.git");
    	
    	
    }

    public function svn()
    {	
    	
    	exec('svn checkout svn://gitee.com/gaoqinfei/text D:\ruanjian\phpstudy\WWW\dbz\public\git --username=gaoqinfei --password=gqf0320...');
    }

    public function zip()
    {
    	$zipname = 'path/test.zip';   
		$files = 'mypath/';  
		creatZip($zipname, $files);
    }

}
